package org.dromara.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.system.domain.*;
import org.dromara.system.domain.bo.WbCompanyBidBagBO;
import org.dromara.system.domain.dto.WbBidBagProductDTO;
import org.dromara.system.domain.dto.WbCompanyBidBagDTO;
import org.dromara.system.domain.dto.WbPlantEquipmentDTO;
import org.dromara.system.domain.vo.WbCompanyBlacklistVo;
import org.dromara.system.domain.vo.WbCompanyInfoVo;

import java.util.List;
import java.util.Map;

/**
 * 公司Mapper接口
 *
 * @author Lion Li
 * @date 2024-03-22
 */
public interface WbCompanyInfoMapper extends BaseMapperPlus<WbCompanyInfo, WbCompanyInfoVo> {

    Page<WbCompanyBidBagDTO> queryCompanyList(@Param("bo") WbCompanyBidBagBO bo, @Param("page") Page<Object> build);

    List<WbBidBagProductDTO> queryBidBagProductList(String name, WbCompanyBidBagBO bo);

    int upload(List<WbCompanyInfo> tbZbzsList);


    List<WbCompanyBlacklist> selectBlackRecod(String s);



    List<WbProductPlant> queryPlantEquipmentP(Long companyId,Page<Object> build);

    Page<WbPlantEquipmentDTO> queryPlantEquipment( Long companyId, Page<Object> build);

    List<WbProductEquipment> queryPlantEquipmentE(Long companyId,Page<Object> build);

    int uploadWbCompanyCert(List tbZbzsList);


    Long selectId(@Param("name")String s);

    void uploadWbTestReport(List tbZbzsList);

    void uploadProductAchievement(List tstecertList);

    void uploadProductPatent(List tstecertList);

    void uploadProductPlant(List tstecertList);

    void uploadProductEquipment(List tssbList);

    void uploadTestEquipment(List tstecertList);

    void uploadProductLowCarbonCert(List tstecertList);

    Page<WbMinuteBidBag> queryBidBagProductListOne(WbCompanyBidBagBO bo, Page<Object> build);

    Page<WbCompanyBidBagDTO> queryCompanyListNotLeft(WbCompanyBidBagBO bo, Page<Object> build);

    List<String> queryCompanyProductNames(Long id);

    /**
     * 自定义查询
     * @param id
     * @return
     */
    WbCompanyInfoVo queryByIdZdy(@Param("id") Long id);

    /**
     * 查询公司详细信息
     * @param id
     * @return
     */
    WbCompanyInfoVo queryDetailsById(@Param("id") Long id);


    Page<WbCompanyBidBagDTO> selectVoPageZYT(String name,Long id, Page<Object> build);

    Page<WbCompanyInfoVo> queryPageList_xcx(@Param("page") Page<Object> build, @Param(Constants.WRAPPER)LambdaQueryWrapper<WbCompanyInfo> ew);


    Page<Map> queryAllList_xcx_details(@Param("page") Page<Object> build,@Param("provinceId")  Long provinceId,@Param("itemName") String itemName,@Param("year")  String year ,@Param(Constants.WRAPPER)LambdaQueryWrapper<WbCompanyInfo> ew);

    WbCompanyInfoVo queryPageList_xcx_ZYT(Long enterpriseId);

    Page<WbCompanyInfoVo> selectVoPageZ(@Param("page") Page<Object> build, @Param(Constants.WRAPPER) LambdaQueryWrapper<WbCompanyInfo> lqw);

    WbCompanyInfoVo selectVoByIdZ(Long id);
}
